'''
title: 选择排序
author: 十一
datetime: 202001041714
'''

import random

# 随机生成100个整数
a = [random.randint(0, 100) for i in range(100)]

# 打印待排序列表
print(a)


for i in range(len(a)-1) :
	xiao = i
	for j in range(i+1, len(a)):
		if a[j] < a[xiao]:
			xiao = j
	a[i], a[xiao] = a[xiao], a[i]

# 打印排序后的列表
print(a)